package com.ruoyi.asset.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.asset.domain.AssetTransactionRecord;

/**
 * 领用归还记录Service接口
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
public interface IAssetTransactionRecordService extends IService<AssetTransactionRecord>
{
    /**
     * 查询领用归还记录
     * 
     * @param transactionId 领用归还记录主键
     * @return 领用归还记录
     */
    public AssetTransactionRecord selectAssetTransactionRecordByTransactionId(String transactionId);

    /**
     * 查询领用归还记录列表
     * 
     * @param assetTransactionRecord 领用归还记录
     * @return 领用归还记录集合
     */
    public List<AssetTransactionRecord> selectAssetTransactionRecordList(AssetTransactionRecord assetTransactionRecord);

    /**
     * 新增领用归还记录
     * 
     * @param assetTransactionRecord 领用归还记录
     * @return 结果
     */
    public int insertAssetTransactionRecord(AssetTransactionRecord assetTransactionRecord);

    /**
     * 修改领用归还记录
     * 
     * @param assetTransactionRecord 领用归还记录
     * @return 结果
     */
    public int updateAssetTransactionRecord(AssetTransactionRecord assetTransactionRecord);

    /**
     * 批量删除领用归还记录
     * 
     * @param transactionIds 需要删除的领用归还记录主键集合
     * @return 结果
     */
    public int deleteAssetTransactionRecordByTransactionIds(String transactionIds);

    /**
     * 删除领用归还记录信息
     * 
     * @param transactionId 领用归还记录主键
     * @return 结果
     */
    public int deleteAssetTransactionRecordByTransactionId(String transactionId);

    /**
     *根据资产编号获取资产名称
     **/
    String getAssetName(String assetNumber);


    /**
     * oa传递信息来异动
     * @param assetTransactionRecord
     * @return
     */
    public String returnAsset(AssetTransactionRecord assetTransactionRecord);

    public String lendAsset(AssetTransactionRecord assetTransactionRecord);
}
